/*************************************************
Author: byron
Date: 19/06/2013
Description:
Notes: 
*************************************************/

#ifndef __cmdofficegm_h__
#define __cmdofficegm_h__

#include "../maindef.h"
#include "commclass.h"
#include "PBMsgHead.pb.h"
#include "MsgOfficeGM.pb.h"

class CMainCtrl;
class CCmdOfficeGM : public CTAsyncCmd
{
public:
    virtual int Do(void* pData);
    virtual int AnsClients(int iRet);
    virtual int LogicDo(int iRet);

    CMainCtrl* pstMainCtrl;
    PBMsgHead  stMsgHead;
    CEnpNetHead stEnpHead;

    MsgReqOfficeGM stReq;
    MsgAnsOfficeGM stAns;

    void GetRoleInfo(CPlayerBaseInfo& stPlayerBaseInfo,
            CPlayerDetailInfo& stPlayerDetailInfo,
            CPlayerSnsDetailInfo& stPlayerSnsDetailInfo);

private:
	int 			_iSubCmd;
    unsigned int 	_uiGID;
    int             _iGIDIndex;
    CGidList        _stGidList;
};

#endif // __cmdofficegm_h__

